/**
 * AgentsApplysService.java
 * Copyright(C) 1949++ 中华人民共和国
 * 深圳市盛开互联网金融顾问有限公司.
 * All rights reserved.
 * E-mail:server@skjr.net
 * SKDate:2017-11-16 17:28:58
 */
package com.huamao.zh.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.huamao.zh.base.PageWrapper;
import com.huamao.zh.mapper.AgentsApplysMapper;
import com.huamao.zh.model.AgentsApplys;
import com.huamao.zh.service.AgentsApplysService;

@Service
@Transactional
public class AgentsApplysServiceImpl implements AgentsApplysService {

	@Autowired
	private AgentsApplysMapper agentsApplysMapper;

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public AgentsApplys add(AgentsApplys agentsApplys) throws Exception {
		agentsApplysMapper.add(agentsApplys);
		return agentsApplys;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public AgentsApplys addSelective(AgentsApplys agentsApplys) throws Exception {
		agentsApplysMapper.addSelective(agentsApplys);
		return agentsApplys;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public int delete(Map<String, Object> map) {
		return agentsApplysMapper.delete(map);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public int update(AgentsApplys agentsApplys) throws Exception {
		return agentsApplysMapper.update(agentsApplys);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public int updateSelective(AgentsApplys agentsApplys) throws Exception {
		return agentsApplysMapper.updateSelective(agentsApplys);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public AgentsApplys get(Integer shaId) {
		AgentsApplys agentsApplys = agentsApplysMapper.get(shaId);
		return agentsApplys;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public PageWrapper<AgentsApplys> search(PageWrapper<AgentsApplys> pageWrapper) {
		List<AgentsApplys> agentsApplyss = agentsApplysMapper.search(pageWrapper);
		pageWrapper.setList(agentsApplyss);
		return pageWrapper;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public List<AgentsApplys> queryList(Map<String, Object> map) {
		return agentsApplysMapper.queryList(map);
	}

	@Override
	public List<AgentsApplys> queryListByBatFlag(Map<String, Object> map) {
		return agentsApplysMapper.queryListByBatFlag(map);
	}

	@Override
	public int queryListCount(Map<String, Object> agentsMap) {
		return agentsApplysMapper.queryListCount(agentsMap);
	}

	@Override
	public void updateDealFlag(Map<String, Object> agentsMap) {
		agentsApplysMapper.updateDealFlag(agentsMap);
	}
}